home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 130 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!intellic.demon.co.uk
  2. From: Chris Trueman <truemanc@intellic.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: SYSTEM CALL RESULT
  5. Date: Tue, 02 Jan 96 19:01:49 GMT
  6. Organization: IntelliCorp
  7. Distribution: world
  8. Message-ID: <820609309snz@intellic.demon.co.uk>
  9. References: <4cbn2i$env@bisance.citi2.fr>
  10. Reply-To: truemanc@intellic.demon.co.uk
  11. X-NNTP-Posting-Host: intellic.demon.co.uk
  12. X-Newsreader: Demon Internet Simple News v1.30
  13. X-Mail2News-Path: intellic.demon.co.uk
  14.  
  15. In article <4cbn2i$env@bisance.citi2.fr>
  16.            labed@math-info.univ-paris5.fr "A.Labed" writes:
  17.  
  18. >
  19. >Hi,
  20. >
  21. >Is there a way to get the result of a
  22. >system call within a C program. 
  23. >example :
  24.  
  25.  
  26. The exit value of a process is returned by the system call. Therefore
  27. if you wrote a small script which computed the line count of the
  28. current list of processes and then exited with this value you could
  29. pick it up as the return value of the system call.
  30.  
  31.  
  32.  
  33.             - Chris
  34.  
  35. -============================================================================-
  36. IntelliCorp Applications Consultant / E-mail: truemanc@intellic.demon.co.uk
  37. LiveModel and PowerModel are part   / CServe: 100255,701
  38. of IntelliCorp's MODELWORKS        / Tel   : +44 (0)1344 305305
  39. application development suite.      / Fax   : +44 (0)1344 305100
  40. -============================================================================-
  41.